/*
 * StringBuffer.h
 *
 *  Created on: 21/mar/2011
 *      Author: Mattia fatmatto Alfieri
 */

#ifndef STRINGBUFFER_H_
#define STRINGBUFFER_H_

#include <iostream>
#include <string>

namespace Qbe {
using namespace std;

class StringBuffer {
	bool bufferingFlag;
	string bufferingString;
public:
	StringBuffer();
	virtual ~StringBuffer();
	bool isBuffering();
	string getLexeme();
	void addChar(char c);
	void stopBuffering();
	void clearBuffer();
};

}

#endif /* STRINGBUFFER_H_ */
